<%--
  Created by IntelliJ IDEA.
  User: 李学健
  Date: 2024/3/9
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    String[] like = request.getParameterValues("subject");
    String name = session.getAttribute("name").toString();
    String gender = session.getAttribute("gender").toString();
%>
<img src="https://pic3.zhimg.com/v2-12345a0a7717e8da47de4acf6180806e_r.jpg" alt="Ing…………" width="300">
<br>
<%
    if (gender.equals("female")) {
        out.print(name + "女士,你好,以下是你的个人爱好");
    } else {
        out.print(name + "先生,你好,以下是你的个人爱好");
    }
%>
<br>
<%
    for (String i : like) {
        out.print(i + "     ");
    }
%>
</body>
</html>
